import { getToken } from '@/utils/token';
import { configureStore } from '@reduxjs/toolkit';
import login from './slices/login';
import profile from './slices/profile';
import home from './slices/home';

const store = configureStore({
  reducer: {
    login,
    profile,
    home,
  },
  // 存储在redux里的token
  preloadedState: {
    login: getToken(),
  },
});

export default store;
